package ms.unicorn.diagram.figures;

import ms.unicorn.dsl.ITheme;

import org.eclipse.gmf.runtime.draw2d.ui.internal.figures.ImageFigureEx;
import org.eclipse.jface.resource.ImageDescriptor;

public class ImageFigure extends ImageFigureEx implements ms.unicorn.dsl.IFigureEx {

	private String name;
	private int flag;
	private ITheme theme;
		
	public ImageFigure(String name, String figurePath) {
		super(ImageDescriptor.createFromFile(null, figurePath).createImage());
		this.name = name;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int getFlag() {
		return this.flag;
	}

	@Override
	public void setFlag(int flag) {
		this.flag = flag;
	}

	@Override
	public ITheme getTheme() {
		return this.theme;
	}

	@Override
	public void setTheme(ITheme theme) {
		this.theme = theme;
	}

	
}
